package gui;

import javax.swing.JPanel;
import com.jgoodies.forms.layout.FormLayout;
import com.jgoodies.forms.layout.ColumnSpec;
import com.jgoodies.forms.layout.RowSpec;
import com.jgoodies.forms.factories.FormFactory;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JTextField;
import javax.swing.JScrollPane;
import javax.swing.JTextPane;
import javax.swing.JCheckBox;
import javax.swing.JSeparator;
import javax.swing.JRadioButton;
import javax.swing.JComboBox;

public class AppPanelSettings extends JPanel {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 3532086094480804100L;
	private final JLabel lblTitle = new JLabel("Application Settings");
	private final JSeparator separator = new JSeparator();
	private final JLabel lblTextEditor = new JLabel("Text Editor");
	private final JRadioButton rdbtnSystem = new JRadioButton("System");
	private final JRadioButton rdbtnCustom = new JRadioButton("Custom");
	private final JTextField textField = new JTextField();
	private final JLabel lblFileType = new JLabel("File Type");
	private final JRadioButton rdbtnRtf = new JRadioButton("rtf");
	private final JRadioButton rdbtnCustom_1 = new JRadioButton("Custom");
	private final JComboBox comboBox = new JComboBox();
	private final JLabel lblBrowser = new JLabel("Browser");
	private final JRadioButton rdbtnSystem_1 = new JRadioButton("System");
	private final JRadioButton rdbtnCustom_2 = new JRadioButton("Custom");
	private final JTextField textField_1 = new JTextField();
	private final JLabel lblLookAndFeel = new JLabel("Look and Feel");
	private final JRadioButton rdbtnSystem_2 = new JRadioButton("System");
	private final JRadioButton rdbtnCustom_3 = new JRadioButton("Custom");
	private final JComboBox comboBox_1 = new JComboBox();
	private final JLabel lblEditorFont = new JLabel("Editor Font");
	private final JRadioButton rdbtnSystem_3 = new JRadioButton("System");
	private final JRadioButton rdbtnCustom_4 = new JRadioButton("Custom");
	private final JTextField textField_2 = new JTextField();
	private final JButton btnSelect = new JButton("Select");
	private final JCheckBox chckbxStartMaximized = new JCheckBox("start maximized");
	private final JLabel lblFont = new JLabel("Font");
	
	
	
	/**
	 * Create the panel.
	 */
	public AppPanelSettings() {
		textField_1.setColumns(10);
		setLayout(new FormLayout(new ColumnSpec[] {
				FormFactory.RELATED_GAP_COLSPEC,
				FormFactory.DEFAULT_COLSPEC,
				FormFactory.RELATED_GAP_COLSPEC,
				FormFactory.DEFAULT_COLSPEC,
				FormFactory.RELATED_GAP_COLSPEC,
				ColumnSpec.decode("min(200px;default):grow"),},
			new RowSpec[] {
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				FormFactory.DEFAULT_ROWSPEC,
				FormFactory.RELATED_GAP_ROWSPEC,
				RowSpec.decode("default:grow"),}));
		
		add(lblTitle, "2, 2, 5, 1");
		
		add(separator, "2, 4, 5, 1");
		
		add(lblTextEditor, "2, 6, 5, 1");
		
		add(rdbtnSystem, "2, 8");
		
		add(rdbtnCustom, "4, 8");
		textField.setColumns(10);
		
		add(textField, "6, 8, fill, default");
		
		add(lblFileType, "2, 10, 5, 1");
		
		add(rdbtnRtf, "2, 12");
		
		add(rdbtnCustom_1, "4, 12");
		
		add(comboBox, "6, 12, fill, default");
		
		add(lblBrowser, "2, 14, 5, 1");
		
		add(rdbtnSystem_1, "2, 16");
		
		add(rdbtnCustom_2, "4, 16");
		
		add(textField_1, "6, 16, fill, default");
		
		add(lblLookAndFeel, "2, 18, 5, 1");
		
		add(rdbtnSystem_2, "2, 20");
		
		add(rdbtnCustom_3, "4, 20");
		
		add(comboBox_1, "6, 20, fill, default");
		
		add(lblEditorFont, "2, 22");
		
		add(rdbtnSystem_3, "2, 24");
		
		add(rdbtnCustom_4, "4, 24");
		
		add(btnSelect, "6, 24");
		
		add(lblFont, "2, 26, right, default");
		textField_2.setColumns(10);
		
		add(textField_2, "4, 26, 3, 1, fill, default");
		
		add(chckbxStartMaximized, "2, 28, 5, 1");
	}

}
